Skip to content

Conversation

@zharinov
Copy link
Member

@zharinov zharinov commented Jan 6, 2026

Summary

  • Make cst and lexer submodules private, re-export public items through parser/mod.rs
  • Keep ast as public submodule (meaningful namespace for AST types)
  • Update import paths across codebase to use the facade

Why

Enforces the facade pattern: parser/mod.rs is now the sole re-export hub for external consumers. Internal file structure (cst.rs, lexer.rs) is hidden, enabling future refactoring without breaking external imports.

@zharinov zharinov enabled auto-merge (squash) January 6, 2026 16:29
@zharinov zharinov changed the title refactor: reorganize src/parser imports refactor: Reorganize src/parser imports Jan 6, 2026
@zharinov zharinov merged commit 00cc283 into master Jan 6, 2026
4 checks passed
@zharinov zharinov deleted the refactor/parser-module-facade branch January 6, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants